<template>
<div>
    <nav>热门搜索</nav>
    <section>
        <router-link tag="a" to="/shop">汉堡</router-link>
        <router-link tag="a" to="/shop">鲜花</router-link>
        <router-link tag="a" to="/shop">蛋糕</router-link>
    </section>
</div>
</template>

<script>
export default {
 data () {
return {
}
 },
 mounted () {
}
}
</script>

<style lang='scss' scoped>
nav{
    color: #999;
    font-size: 14px;
    height: 40px;
    margin-left: 10px;
    line-height: 40px;
    border-bottom: 1px solid #E4E4E4;
}
section{
    background: #fff;
    margin: 13px 10px 24px 10px;
    max-height: 80px;
    overflow: hidden;
    a{
        padding: 0 10px;
        height: 28px;
        line-height: 28px;
        color: #666;
        margin: 5px 10px;
        margin-left: 0;
        font-size: 13px;
        display: inline-block;
        position: relative;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    a:after{
        content: '';
        display: inline-block;
        border: 1px solid #d7d7d7;
        border-radius: 2px;
        width: 190%;
        height: 200%;
        -webkit-transform: translateX(-50%) translateY(-50%) scale(0.5);
        transform: translateX(-50%) translateY(-50%) scale(0.5);
        position: absolute;
        top: 50%;
        left: 50%;
        box-sizing: border-box;
    }
}

</style>
